<?php
include('../confing/common.php');
if($islogin!=1){exit("<script language='javascript'>window.location.href='login';</script>");}
$sj=$DB->get_row("select uid,user,yqm,money,notice from qingka_wangke_user WHERE uid='{$userrow['uuid']}'");
$spsm=$DB->get_row("select content from qingka_wangke_class where cid='$cid'");

$dd=$DB->count("select count(oid) from qingka_wangke_order WHERE uid='{$userrow['uid']}' ");
$ck=$DB->count("SELECT count(id) FROM `qingka_wangke_log` WHERE type='API查课' AND uid='{$userrow['uid']}' ");
$xd=$DB->count("SELECT count(id) FROM `qingka_wangke_log` WHERE type='API添加任务' AND uid='{$userrow['uid']}' ");
if($ck==0 || $xd==0){
    $xdb=100;
}else{
    $xdb=round($xd/$ck,4)*100;
}


?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title><?=$conf['sitename']?></title>
<meta name="keywords" content="<?=$conf['keywords'];?>" />
<meta name="description" content="<?=$conf['description'];?>" />
<link rel="icon" href="<?=$conf['icon']?>" type="image/ico">
<meta name="author" content=" ">
<link rel="stylesheet" href="assets/css/element.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/apps.css" type="text/css" />
<link rel="stylesheet" href="assets/css/app.css" type="text/css" />
<link rel="stylesheet" href="assets/layui/css/layui.css" type="text/css" />
<link rel="stylesheet" href="https://cdn.staticfile.net/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<!--<link href="http://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">-->
<link rel="stylesheet" href="assets/LightYear/js/bootstrap-multitabs/multitabs.min.css">
<link href="assets/LightYear/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/LightYear/css/style.min.css" rel="stylesheet">
<link href="assets/LightYear/css/materialdesignicons.min.css" rel="stylesheet">
<!-- <script src="//lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script> -->
<script type="text/javascript" src="assets/LightYear/js/jquery.min.js"></script>
<script src="layer/3.1.1/layer.js"></script>



<!-- 滚动条样式 -->
<link rel="stylesheet" href="pengzi/gundontiao.css">
 <style>
        /* 自定义下拉菜单样式 */
        .custom-dropdown {
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            border: none;
            overflow: hidden;
            animation: dropdown-fade 0.3s ease;
            padding: 8px 0;
        }

        @keyframes dropdown-fade {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .custom-dropdown li a {
            padding: 10px 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .custom-dropdown li a:hover {
            background-color: #fff;
            color: #4EA5FF;
            padding-left: 25px;
        }

        .custom-dropdown li a:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background-color: #4EA5FF;
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .custom-dropdown li a:hover:before {
            transform: scaleY(1);
        }

        .custom-dropdown li a i {
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .custom-dropdown li a:hover i {
            color: #4EA5FF;
            transform: scale(1.2);
        }

        .custom-dropdown .divider {
            margin: 8px 0;
            background-color: rgba(252, 58, 114, 0.1);
        }

        #szyqprice {
            cursor: pointer;
        }

        #szyqprice:hover {
            color: #4EA5FF;
        }
    </style>
</head>

<body>

    
<!-- 点赞特效 -->
	<script type="text/javascript" src="assets/js/djtx.js"></script>
    
    <script src="layer/pengzi/inputParticles.js"></script>
</body>

</html>
<?php
if($userrow['active']=="0"){
alert('您的账号已被封禁！','login');
}
// if($userrow['zcz']=="0"){
// alert('账号已限制登陆！','login');
// }
?>
<script type="text/javascript">
		      /*  动态标题*/
		     var OriginTitile = document.title,
		      titleTime;
		     document.addEventListener("visibilitychange",
		     function() {
		      if (document.hidden) {
		        document.title = "你别走啊😭😭😭";
		        clearTimeout(titleTime)
		    } else {
		        document.title = "欢迎老板回家🙋‍♂️" ;
		        titleTime = setTimeout(function() {
		            document.title = OriginTitile
		        },
		        2000)
		    }
		    });
 </script>




<body>
